package com.mvc.service.impl;

import com.mvc.entity.UserAddress;
import com.mvc.mapper.UserAddressMapper;
import com.mvc.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserAddressServiceImpl
 * @Description TODO
 * @Author king
 * @Date 2021/11/27 16:25
 * @Version 1.0
 **/
@Service
public class UserAddressServiceImpl implements UserAddressService {
    @Autowired
    private UserAddressMapper userAddressMapper;

    @Override
    public List<UserAddress> listSearch(Integer startRow, Integer limit) {
        return userAddressMapper.listSearch(startRow,limit);
    }

    @Override
    public Integer getCount() {
        return userAddressMapper.getCount();
    }

    @Override
    public Integer insert(UserAddress UserAddress) {
        return userAddressMapper.insert(UserAddress);
    }

    @Override
    public Integer update(UserAddress UserAddress) {
        return userAddressMapper.update(UserAddress);
    }

    @Override
    public Integer del(Integer id) {
        return userAddressMapper.del(id);
    }
}
